import request from '@/utils/request'

// 查询份额控制总列表
export function listNcShareControlMaster(query) {
  return request({
    url: '/sales/NcShareControlMaster/list',
    method: 'get',
    params: query
  })
}
// 查询份额控制总列表
export function selectStatisNum(query) {
  return request({
    url: '/sales/NcShareControlMaster/selectStatisNum',
    method: 'get',
    params: query
  })
}

// 查询份额控制总详细
export function getNcShareControlMaster(id) {
  return request({
    url: '/sales/NcShareControlMaster/' + id,
    method: 'get'
  })
}

// 新增份额控制总
export function addNcShareControlMaster(data) {
  return request({
    url: '/sales/NcShareControlMaster',
    method: 'post',
    data: data
  })
}

// 修改份额控制总
export function updateNcShareControlMaster(data) {
  return request({
    url: '/sales/NcShareControlMaster',
    method: 'put',
    data: data
  })
}

// 删除份额控制总
export function delNcShareControlMaster(id) {
  return request({
    url: '/sales/NcShareControlMaster/' + id,
    method: 'delete'
  })
}
